﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SFP;

namespace HamsterDelivery.LevelStructure.GameObjects
{
    public class GrasObject : GameObject
    {
        private Random random;
        public bool Observed { get; private set; }

        public GrasObject(int randomSeed)
        {
            random = new Random(randomSeed);
            Observed = false;
        }

        public bool Observe()
        {
            if (Observed) return false;

            Observed = true;

            int value = random.Next(0, 3);
            if (value == 1)
                return true;
            else
                return false;
        }
    }
}
